﻿using PersonalWeekReport.Models.Config;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace PersonalWeekReport.Models.Common
{
    public class Company
    {
        [Key]
        public Guid Id { set; get; }

        [Display(Name="公司名称",ShortName ="公司"),StringLength(50)]
        public string CompanyName { set; get; }

        public string CompanyCanlendarId { set; get; }

        [ForeignKey("CompanyCanlendarId")]
        public virtual CompanyCanlendar CompanyCanlendar {set;get;}


        public virtual ICollection<Department> Departments { set; get; }
    }
}